<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
<link rel="stylesheet" href="<%=path%>/css/pc/bbs2.css">

<script type="text/javascript" src="<%=path%>/js/pc/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/pc/nav.js"></script>
<script type="text/javascript" charset="utf-8" src="/forumsystem/js/utf8-jsp/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/forumsystem/js/utf8-jsp/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/forumsystem/js/utf8-jsp/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/forumsystem/js/utf8-jsp/ueditor.config.js"></script>
<script type="text/javascript" src="/forumsystem/js/utf8-jsp/ueditor.parse.min.js"></script>

<title>查看新闻</title>
</head>
<body>
	<!--     头部公共部分   -->
      	<%@include file="../partpage/hander.jsp"%>
      <!--
        	作者：offline
        	时间：2016-12-27
        	描述：文章内容
        -->
        <div class="bbs2_wtf">
        	<div class="bbs_div1_wtf">
		    	<div class="bbs_div1">
        			<a href="<%=path%>/newsctr/forum.htm">首页</a> >
        			<c:if test="${news1.newsType==4}"><a href="<%=request.getContextPath()%>/basicctr/pcbbsbasic.htm?id=1">关于论坛</a></c:if>
        			<c:if test="${news1.newsType!=4}"><a href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=1">新闻中心</a></c:if> >
        			<c:if test="${news1.newsType==1}"><a href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=1">新闻动态</a></c:if>
        			<c:if test="${news1.newsType==2}"><a href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=2">近期要闻</a></c:if>
        			<c:if test="${news1.newsType==3}"><a href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=3">通知公告</a></c:if>
        			<c:if test="${news1.newsType==4}"><a href="<%=request.getContextPath()%>/newsctr/pcnewslist.htm?newsType=4">理事动态</a></c:if> >
        			<a href="###">${news1.newsTheme}</a>
        		</div>
    		</div>
        	<div class="bbs2">
        		<div class="bbs2_div1">${news1.newsTheme}</div>
        		<div class="bbs2_div2">
        			<span class="bbs2_div2_sp1">发布时间：<fmt:formatDate value="${news1.newsPublisTime}"
								pattern="yyyy-MM-dd HH:mm:ss" /></span>
        			 <a class="bbs2_div2_a1" href="javascript: back()">返回 >></a> 
        		</div>
        		<div class="bbs2_div3">
        			${news1.newsContent}
        		</div>
        		<div class="bbs2_div4">
        		<c:if test="${news2.size()>0}">
        			上一篇 : <a href="javascript: toother('${news2.get(0).newsId}')">${news2.get(0).newsTheme}</a></c:if>
        		</div>
        		<div class="bbs2_div5">
        		<c:if test="${news3.size()>0}">
        			下一篇 : <a href="javascript: toother('${news3.get(0).newsId}')">${news3.get(0).newsTheme}</a>
        			</c:if>
        		</div>
        		<form action="" id="sform" method="post">
					<input type="hidden" id="pageIndex" name="pageIndex"
						value="${news.pageInfo.pageIndex}" /> <input type="hidden"
						id="pageSize" name="pageSize" value="${news.pageInfo.pageSize}" />
						<input type="hidden" name="newsId" id="newsId" value="0"/><input type="hidden" id="newsType" name="newsType" value="${news.newsType}" />
				</form>
        	</div>
        </div>
      	<!--     底部公共部分   -->
      	<%@include file="../partpage/bottom.jsp"%>
</body>
<script type="text/javascript">
//上下篇
function toother(id){
	var newsType=$("#newsType").val();
	window.location.href="<%=path%>/newsctr/pcnews.htm?newsId="+id+"&newsType="+newsType;
}
//返回事件
function back(){
	 
	var newsType=$("#newsType").val();
	window.location.href="<%=path%>/newsctr/pcnewslist.htm?newsType="+newsType;
	
}

</script>
</html>

